<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数据类型</title>
	</head>
	<body>
		<script>
			var str = "JavaScript数据类型";//字符串
			console.log(str);
			
			var i = 100;//整数
			console.log(i);
			
			var isMan = true;//布尔
			console.log(isMan);
			
			var hobby =["乒乓球","乒乓球","乒乓球","乒乓球"] ;//数组
			console.log(hobby);
			console.log(hobby[0]);//数组下标从0开始
			console.log(hobby[hobby.length-1]);//数组最后一个元素
			
			
			
		</script>
	</body>
</html>
